package com.tsp_tux.demo.Entity;

import lombok.*;

import javax.persistence.*;

/**
 * @author 沈育洋
 */

@Entity
@Table(name = "user")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Data
public class User {

    @Id
    private String uid;

    @Column(name = "username", length = 64)
    private String username;

    @Column(name = "category", length = 1)
    private int category;

    @Column(name = "email", length = 64)
    private String email;

    @Column(name = "iconurl")
    private String iconurl;
}
